<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #container {
            width: 500px;
            height: 500px;
            text-align: center;
        }
    </style>
</head>

<body>
    <!-- 展示地图，地图中⼼点为⻄藏拉萨布达拉宫，并做出⼀个标记 -->
    <div id="container"></div>
    <script type="text/javascript">
        window._AMapSecurityConfig = {
            securityJsCode: "44af006c1d5088bc206c334e2ed202e7",
        };
    </script>
    <script src="https://webapi.amap.com/loader.js"></script>
    <script type="text/javascript">
        AMapLoader.load({
            key: "06556c8d871b304796013c523cf38180", //申请好的Web端开发者 Key，调用 load 时必填
            version: "2.0", //指定要加载的 JS API 的版本，缺省时默认为 1.4.15
        })
            .then((AMap) => {
                const map = new AMap.Map("container",{
                    center:[91.118463, 29.654471], 
                });
                const marker = new AMap.Marker({
                    position: [91.118463, 29.654471], //位置
                });
                map.add(marker); //添加到地图
            })
            .catch((e) => {
                console.error(e); //加载错误提示
            });
    </script>
</body>

</html>